Runs once, for every instance in a room (including ones placed by the room itself), right after the room’s own creation code runs, when that room becomes current.
room_start: fires once per instance, when its room becomes currentRuns once for every instance now in a room, right after that room's own creation code has run, whenever that room becomes current - including the very first room, where it runs after Game Start. Unlike Create, which only ever runs for an instance once in its whole lifetime, Room Start runs again for a persistent instance every time it re-enters a room, which is what makes it the right place for "set up for this room" logic that a plain Create cannot express on its own. It also runs for every instance of a Persistent room each time the player comes back to it, the instances that were kept included, although Create and the creation code do not run for them again.
See When each event runs for exactly where this sits relative to Create and the room's creation code, with a picture.
var target = instance_nearest(x, y, obj_doc_hero);
camera_follow(target);Re-establishes camera follow onto the nearest hero every time this (persistent) instance's room becomes current again.